/* General Layout */
.dynamic-list-container {
  margin: 1.5rem;
  padding: 20px;
 
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 20px ;
  background-color: #fff;
}


.left-section {
  display: flex;
  align-items: center;
}



/* Description Alert */
.description {
  margin-bottom: 20px;
}

nz-alert {
  border-radius: 8px;
}

/* Status Summary Cards */
.status-summary {
  margin-bottom: 20px;
}

.status-card {
  display: flex;
  align-items: center;
  background-color: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.status-icon {
  font-size: 36px;
  margin-right: 15px;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
}

.status-icon.total { background-color: #e6f7ff; color: #1890ff; }
.status-icon.operations { background-color: #fff1e6; color: #faad14; }
.status-icon.stock { background-color: #f6ffed; color: #52c41a; }
.status-icon.time { background-color: #f9f0ff; color: #722ed1; }

.status-info h3 {
  margin: 0 0 5px 0;
  font-size: 24px;
  color: #333;
}

.status-info p {
  margin: 0;
  color: #888;
  font-size: 14px;
}

/* Control Panel */
.control-panel {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.control-form nz-form-item {
  margin-right: 15px; /* Adjust spacing between form items */
  margin-bottom: 15px; /* Add vertical spacing */
}



/* Performance Metrics */
.performance-metrics {
  background: #eaf8ff; /* Light blue background */
  border: 1px solid #a8e3ff; /* Matching border */
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.performance-metrics h3 {
  color: #1890ff; /* Ant Design primary blue */
  margin-bottom: 15px;
  font-size: 18px;
  border-bottom: 1px dashed #d9d9d9;
  padding-bottom: 10px;
}

.metric-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dotted #e0e0e0;
}

.metric-item:last-child {
  border-bottom: none;
}

.metric-label {
  color: #555;
  font-size: 15px;
}

.metric-value {
  font-size: 16px;
  font-weight: 600;
}

/* Academic Test List (for performance tracking) */
.academic-test-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 20px;
  padding: 10px;
  border: 1px dashed #ccc;
  border-radius: 8px;
  background-color: #fefefe;
  max-height: 400px; /* Limit height for large lists */
  overflow-y: auto;
}

.academic-test-list span {
  background-color: #e9f7ef;
  border: 1px solid #d0e9d6;
  color: #389e0d;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
}

/* Book List */
.book-list {

}

.book-item {
  display: flex;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  min-height: 120px;
  margin: 4px 0;
}

.book-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.book-cover {
  width: 80px;
  min-width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #fff;
  background-color: #3498db; /* Default color */
}

.book-info {
  flex-grow: 1;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.book-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-meta, .book-details {
  font-size: 13px;
  color: #666;
  margin-bottom: 3px;
}

.book-meta span, .book-details span {
  margin-right: 10px;
}

.stock-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 15px;

}

.stock-count {
  font-size: 16px;
  margin-bottom: 8px;
}

.stock-count .label {
  color: #888;
}

.stock-count .count {
  font-weight: bold;
  margin-left: 5px;
}

.stock-normal { color: #52c41a; } /* Green */
.stock-low { color: #faad14; }    /* Yellow */
.stock-empty { color: #f5222d; }  /* Red */

.operations {
  display: flex;
  align-items: center;
  padding-right: 15px;
}

.operations button {
  margin-left: 5px;
  border-radius: 4px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-top: 20px;
}

.empty-icon {
  font-size: 60px;
  color: #d9d9d9;
  margin-bottom: 20px;
}

.empty-state h3 {
  color: #555;
  margin-bottom: 10px;
  font-size: 22px;
}

.empty-state p {
  color: #888;
  margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .right-section {
    margin-top: 15px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .right-section button {
    margin: 5px;
  }

  .status-summary nz-col {
    margin-bottom: 15px;
  }

  .control-form {
    flex-direction: column;
  }

  .control-form nz-form-item {
    margin-right: 0;
    width: 100%;
  }


  .book-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .book-cover {
    width: 100%;
    height: 80px;
    min-width: unset;
  }

  .book-info, .stock-info, .operations {
    border-left: none;
    border-top: 1px solid #f0f0f0;
    width: 100%;
    padding: 10px;
    align-items: center;
  }

  .stock-info {
    flex-direction: row;
    justify-content: center;
  }

  .operations {
    justify-content: center;
  }
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  column-gap: 8px;
  row-gap: 8px;
}

.page-heading {
  font-size: 1.6rem;
  margin-bottom: 0 !important;
}

